// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Axios from 'axios'
import MySwiper from './components/common/MySwiper.vue'

// mui的样式，字体图标开始
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'
// mui结束

// mint-ui开始
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)
// mint-ui结束

// 组件引入开始
Vue.component(MySwiper.name, MySwiper)
// 组件引入结束

// axios开始
// baseURL地址的处理
Axios.defaults.baseURL = 'http://vue.studyit.io/api/'
// 挂载
Object.defineProperty(Vue.prototype, '$axios', {
  get () {
    return Axios
  }
})
// axios结束

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
